﻿// *****************************************************************************
// BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE)
//  © Component Factory Pty Ltd, 2006 - 2016, All rights reserved.
// The software and associated documentation supplied hereunder are the 
//  proprietary information of Component Factory Pty Ltd, 13 Swallows Close, 
//  Mornington, Vic 3931, Australia and are supplied subject to license terms.
// 
//  Modifications by Peter Wagner(aka Wagnerp) & Simon Coghlan(aka Smurf-IV), et al. 2017 - 2021. All rights reserved. (https://github.com/Krypton-Suite/Standard-Toolkit)
//  Version 6.0.0  
// *****************************************************************************

using System;
using System.Drawing;

namespace Krypton.Toolkit
{
    /// <summary>
    /// Details for a tooltip related event.
    /// </summary>
    public class ToolTipEventArgs : EventArgs
    {
        #region Identity
        /// <summary>
        /// Initialize a new instance of the ToolTipEventArgs class.
        /// </summary>
        /// <param name="target">Reference to view element that requires tooltip.</param>
        /// <param name="controlMousePosition">Screen location of mouse when tooltip was required.</param>
        public ToolTipEventArgs(ViewBase target, Point controlMousePosition)
        {
            //Debug.Assert(target != null);

            // Remember parameter details
            Target = target;
            ControlMousePosition = controlMousePosition;
        }
        #endregion

        #region Public
        /// <summary>
        /// Gets the view element that is related to the tooltip.
        /// </summary>
        public ViewBase Target { get; }

        /// <summary>
        /// Gets the screen point of the mouse where tooltip is required.
        /// </summary>
        public Point ControlMousePosition { get; }

        #endregion
    }
}
